package org.linlinjava.litemall.db.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_user")
public class User extends BaseModel {

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("gender")
    private Byte gender;

    @TableField("birthday")
    private LocalDate birthday;

    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;

    @TableField("last_login_ip")
    private String lastLoginIp;

    @TableField("user_level")
    private Byte userLevel;

    @TableField("nickname")
    private String nickname;

    @TableField("mobile")
    private String mobile;

    @TableField("avatar")
    private String avatar;

    @TableField("weixin_openid")
    private String weixinOpenid;

    @TableField("session_key")
    private String sessionKey;

    @TableField("status")
    private Byte status;

}